// SubnegotiationCommand.h: interface for the CSubnegotiationCommand class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SUBNEGOTIATIONCOMMAND_H__40B35D70_C673_40C3_A527_29836F9CC06F__INCLUDED_)
#define AFX_SUBNEGOTIATIONCOMMAND_H__40B35D70_C673_40C3_A527_29836F9CC06F__INCLUDED_

#include "TelnetCommand.h"
#include "ITelnetOptionCollection.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CSubnegotiationCommand : public CTelnetCommand
{
protected:
	CArray<char, char> m_parameters;
	BOOL m_prevIAC;
	BOOL m_bEnd;

protected:
	ITelnetOptionCollection *m_pOptionCol;
	CTelnetOption *m_pOption;

public:
	virtual BOOL EatChar(char c);

public:
	CSubnegotiationCommand(ITelnetOptionCollection *pOptionCol);
	virtual ~CSubnegotiationCommand();
};

#endif // !defined(AFX_SUBNEGOTIATIONCOMMAND_H__40B35D70_C673_40C3_A527_29836F9CC06F__INCLUDED_)
